package com.dman.multi.algo;

import java.util.List;

import com.dman.multi.core.Section;

public interface SectionAlgo {
	
	/**
	 * This function creates a section when range support is enabled. This function
	 * accepts a list of Section objects and it inserts the desired section at the 
	 * appropriate position and returns the index of the newly created section.
	 * 
	 * Usually the data structure of choice here is a linked list, since we'd have 
	 * lots of insert and remove operations with respect to get operations.
	 * 
	 * @param secList
	 * @return 
	 * index of the inserted section > 0 
	 */
	public int createSection(List<Section> secList) throws SectionCreationException;
}
